package com.tyk.bookstore.front.cart.model.query;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author tyk
 * @description 购物车
 */
@Data
public class CartAddQuery {
    @NotNull
    @Schema(description = "书籍ID")
    @Min(1)
    private Long bookId;
    @NotNull
    @Schema(description = "购买数量")
    @Min(1)
    private Integer num;
}
